how to calculate interest paid on an installment loan